import {request} from "./request";

export function register(username,password,email,phone,qq,checkCode) {
    return request({
        url: '/register',
        params: {
            username,
            password,
            email,
            phone,
            qq,
            checkCode
         },
        method: 'post'
    })
}

export function sendCheckCode(username,email) {
    return request({
        url: '/register/getCheckCode',
        params: {
            username,
            email
        },
        method: 'post'
    });
}

export function checkUsername(username) {
    return request({
        url: '/register/checkUsername',
        params: {
            username
        },
        method: 'post'
    });
}